package com.whenjun.dto.login;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

public class BaseLogin implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty("用户名")
	@NotEmpty(message = "username为空")
	private String username;
	
	@ApiModelProperty("密码")
	@NotEmpty(message = "password为空")
	private String password;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "BaseLogin [username=" + username + ", password=" + password + "]";
	}
}
